package com.yssw.model.dto;

import com.yssw.product.domain.ProductTable;
import lombok.*;

/**
 * @Author KnockingFarmers
 * @Date 2023/3/27 15:37
 * @PackageName:com.yssw.model.dto
 * @ClassName: ProductTableQueryDto
 * @Description: TODO
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
public class ProductTableDto extends ProductTable {

    private Long[] classIds;
private Integer undercarriage;
    @Override
    public Long getClassId(){
       if (this.classIds!=null){
           return this.classIds[this.classIds.length-1];
       }
       return super.getClassId();
    }
}
